import Tween from '../index';
import React from 'react';
import '../assets/index.less';

function Demo() {
  const bbb = e => {
    console.log(e); // eslint-disable-line no-console
  };

  return (
    <Tween
      animation={{ x: 300 }}
      onChange={bbb}
      style={{ opacity: 1, height: 100, display: 'inline-block' }}
    >
      <div>执行动效</div>
    </Tween>
  );
}
export default Demo;
